import request from '@/utils/request'

// 查询海报列表
export function listPoster(query) {
  return request({
    url: '/works',
    method: 'get',
    params: query
  })
}

// 新增海报
export function addPoster(data) {
  return request({
    url: '/works',
    method: 'post',
    data: data
  })
}

// 删除
export function delPoster(posterId) {
  return request({
    url: '/works/' + posterId,
    method: 'delete'
  })
}

// 活动查询
export function queryActivityList(data) {
  return request({
    url: '/activity/queryActivityList',
    method: 'post',
    data: data
  })
}